Jazzila.prototype.onStateChange = function (state){

}

Jazzila.prototype.send = function (e)
{
	var show =  document.getElementById("xmpp.show");
	var status = document.getElementById("xmpp.status.textbox");
	if (show && status)
	{
			this.nsIXmppService.setLineStatus(show.value, status.value);
	}
	window.close();
}

function onInputKeyPress (e)
{
    switch (e.keyCode)
    {
        case 13: /* CR */
            e.line = e.target.value;
            e.target.value = "";
            if (e.line.search(/\S/) == -1)
                return;
            jazzila.send(e);
            break;
    }
}
